home *** CD-ROM | disk | FTP | other *** search
- Path: pipex-sa.net!usenet
- From: thierry@solo.pipex.co.za
- Newsgroups: comp.lang.c,comp.os.os2.programmer.misc
- Subject: Re: redefining stdout and stderr
- Date: 9 Jan 1996 10:21:07 GMT
- Organization: pipex-sa.net
- Message-ID: <4ctfij$77o@baloo.pipex-sa.net>
- References: <DKw9Cv.2x4@fyi.net>
- Reply-To: thierry@solo.pipex.co.za
- NNTP-Posting-Host: pop48.dial.pipex.co.za
- X-Newsreader: IBM NewsReader/2 v1.2.5
-
- In <DKw9Cv.2x4@fyi.net>, fireresq@fyi.net writes:
- >everyting I am doing is running on OS/2 Warp Connect and using the IBM
- >Set++ compiler.
- >
- >I have a program that I have converted form an exe to a DLL. I used many
- >printf's for debug and status information.
- >
- >What I want to do is cause stdout and stderr to go to a file but since
- >this dll will be called from VisualAge I cannot redirect the output with >.
- >
- [...]
- >Thanks in advance!
- >Mark Russell.
-
- Close the handles 1 and 2 (stdout and stderr) then open your file.
- Use DosDupHandle (or the lib equivalent) to get your redirection.
-
- What will happend when your DLL returns ??????
-
- //---------------------------
- Thierry de Montaudry
- thierry@solo.pipex.co.za
-